#include "stdio.h"
int main(){
    double sum = 0;
    double jc = 1;
    int i;
    for (i = 1; (1.0 / jc ) >= 1e-8;i++){
        jc *= i;
        sum += 1.0 / jc;
    }
    printf("%lf", sum);
}